package gs.sr.tkfxz.shared;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ReqParam implements Serializable {
	private static final long serialVersionUID = -8743071238123942150L;

	private String itemUrl;

	private String userNick;

	private Long itemId;

	private String sessionKey;

	private Map<String, String> otherParam;

	public String getItemUrl() {
		return itemUrl;
	}

	public void setItemUrl(String itemUrl) {
		this.itemUrl = itemUrl;
	}

	public String getUserNick() {
		return userNick;
	}

	public void setUserNick(String userNick) {
		this.userNick = userNick;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public Map<String, String> getOtherParam() {
		return otherParam;
	}

	public void resetOtherParam(Map<String, List<String>> otherParam) {
		this.otherParam = new HashMap<String, String>();
		for (Map.Entry<String, List<String>> entry : otherParam.entrySet()) {
			this.otherParam.put(entry.getKey(), entry.getValue().get(0));
		}
	}

}
